import { Injectable } from '@angular/core';
import { _HttpClient } from '@delon/theme';

@Injectable({
  providedIn: 'root'
})
export class TallyManageUnlockService {

	ostUrl = 'tjpn4-handle-tally/oneStockTally/';
	tstUrl = 'tjpn4-handle-tally/twoStockTally/';
	bulkUrl = 'tjpn4-handle-tally/bulkTally/';
	remarkUrl = 'tjpn4-handle-tally/tShipBillRemark/';
	api = {
		ostTallyUnlockPage: this.ostUrl + 'unlockPage',
		ostChangeIsEdit: this.ostUrl + 'changeIsEdit?id=',
		ostTallyDetail: this.ostUrl + 'unlockDetail',

		tstTallyUnlockPage: this.tstUrl + 'unlockPage',
		tstChangeIsEdit: this.tstUrl + 'changeIsEdit?id=',
		tstTallyDetail: this.tstUrl + 'unlockDetail',

		bulkTallyUnlockPage: this.bulkUrl + 'unlockPage',
		bulkChangeIsEdit: this.bulkUrl + 'changeIsEdit?id=',
		bulkTallyDetail: this.bulkUrl + 'unlockDetail',

		remarkPage: this.remarkUrl + 'page',
	};
	constructor(private http: _HttpClient) {
	}

	ostTallyUnlockPage(params: any) : any {
		return this.http.get(this.api.ostTallyUnlockPage, params);
	}

	ostTallyDetail(params: any): any {
		return this.http.get(this.api.ostTallyDetail, params);
	}

	ostChangeIsEdit(id: any): any {
		return this.http.post(this.api.ostChangeIsEdit + id);
	}

	tstTallyUnlockPage(params: any) : any {
		return this.http.get(this.api.tstTallyUnlockPage, params);
	}

	tstChangeIsEdit(id: any): any {
		return this.http.post(this.api.tstChangeIsEdit + id);
	}

	tstTallyDetail(params: any): any {
		return this.http.get(this.api.tstTallyDetail, params);
	}


	bulkTallyUnlockPage(params: any) : any {
		return this.http.get(this.api.bulkTallyUnlockPage, params);
	}

	bulkChangeIsEdit(id: any): any {
		return this.http.post(this.api.bulkChangeIsEdit + id);
	}

	bulkTallyDetail(params: any): any {
		return this.http.get(this.api.bulkTallyDetail, params);
	}

	remarkPage(params: any): any {
		return this.http.get(this.api.remarkPage, params);
	}
}
